<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
   
    <script>
        const div = document.createElement('div');
        // div.innerHTML = 'hello word';
        console.log(div);
        const text = document.createTextNode("hello world");
        div.appendChild(text);
        document.body.appendChild(div);
    </script>
</body>
</html>